function club_mark1(id,f,c_lass)
{
	//alert("id:"+id+ "f: "+f+"c_lass:"+c_lass);
	$.post("/club/mark.php", {c_id: id, mark: f, c: c_lass}, function(data){
		//alert(data);
		if(data!="have"){
			var up_down = data.split(",");
			$("#up").html(up_down[0]);
			$("#up2").html(up_down[0]);
			$("#down").html(up_down[1]);
			$("#down2").html(up_down[1]);
			alert("谢谢您的打分！");
		}else{
			alert("您已经打过分了！");
		}
		// /club/mark.php?c_id={$StoreId}&mark=1&sid={$StoreId}
	});	
}

function club_mark(id,f,c_lass,flag)
{
	//alert("id:"+id+ "f: "+f+"c_lass:"+c_lass);
	$.post("mark.php", {c_id: id, mark: f, c: c_lass}, function(data){
		//alert(data);
		var tmpa = data.split("|");
		data = tmpa[1];
		if(tmpa[0]=='1'){
			var up_down = data.split(",");
			if (flag) {
				var u = "#up"+flag;
				var d = "#down"+flag;
				$(u).html(up_down[0]);
				$(d).html(up_down[1]);
			}
			else {
				$("#up").html(up_down[0]);
				$("#up2").html(up_down[0]);
				$("#down").html(up_down[1]);
				$("#down2").html(up_down[1]);
			}
			alert("谢谢您的打分！");
		}else if (tmpa[0]=='0'){
			alert("您已经打过分了！");
		}
		else if(tmpa[0]=='-1') {
			alert('请您先登录！');
		}
	});	
}
